CheckUpdate
The Event Manager uses theCheckUpdatefunction to scan the window list for windows that need updating.
FUNCTION CheckUpdate (VAR theEvent: EventRecord): Boolean;
theEvent- An event record to be filled in if a window needs updating.
DESCRIPTION
TheCheckUpdatefunction scans the window list from front to back, checking for a visible window that needs updating (that is, a visible window whose update region is not empty). If it finds one whose window record contains a picture handle, it redraws the window itself and continues through the list. If it finds a window record whose update region is not empty and whose window record does not contain a picture handle, it stores an update event in the parametertheEventand returnsTRUE. If it finds no such window, it returnsFALSE.The Event Manager is the only software that ordinarily calls
CheckUpdate.